package love.yuanmengrobot.guoyitang.controller;

/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:lzl
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/8/11 10:27
 */

import love.yuanmengrobot.guoyitang.entity.TbNatmehaHotspot;
import love.yuanmengrobot.guoyitang.service.HotSpotsService;
import love.yuanmengrobot.guoyitang.vo.Vo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("hotSpots")
public class HotSpotsController {

    @Autowired
    private HotSpotsService hotSpotsService;

    @RequestMapping("/index")
    public Vo<TbNatmehaHotspot> hotSpotsIndex(@RequestParam("current") Integer current, Integer size){

        return hotSpotsService.queryByLimit(current, size);
    }
}
